import java.util.ArrayList;
import java.util.List;

/**
 * @author Mr.J
 * @version 1.0.0
 * @date 2024/10/31
 * @desc
 */
public class Subject {
	private Department department;
	private List<Instructor> instructors;

	public Subject(Department department) {
		this.department = department;
		this.instructors = new ArrayList<>();
	}

	public void addInstructor(Instructor instructor) {
		this.instructors.add(instructor);
		instructor.teachSubject(this);
	}

	public Department getDepartment() {
		return department;
	}

	public List<Instructor> getInstructors() {
		return instructors;
	}
}
